﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MatchBet.ascx.cs" Inherits="VirtualTournaments.Frontend.MenuControls.GamblingManagerMenu.InnerControls.MatchBet" %>

<%@ Register TagPrefix="GenericControls" TagName="JourneyManagerControl" Src="~/MenuControls/GenericControls/JourneyManager.ascx" %>

<asp:Panel ID="ContentPanel" runat="server">
    
    <div style="position:fixed;height:100%;width:100%;top:0px;left:0px;
        background-color:#000000;filter:alpha(opacity=55);-moz-opacity:.55;opacity:.55;z-index:50;" 
        id="pagedimmer" runat="server" visible="false">
    </div>

    <div style="position:fixed;background-color:#888888; border:1px solid #999999; z-index:50; left:20%; 
        right:20%; top:20%;" id="msgbox" runat="server" visible="false">
        <div style="margin:5px;"> 
            <table width="100%" style="background-color:#FFFFFF; border:1px solid #999999;"> 
                <tr> 
                    <td colspan="2" style="font-family:tahoma; font-size:11px; font-weight:bold; 
                        padding-left:5px; background-image: url(winxp.gif); height:22px;">Confirm your selection.
                    </td> 
                </tr> 
                
                <tr>
                    <td style="width:100px; text-align:center;"></td> 
                    
                    <td style="font-family:tahoma; font-size:11px;padding-left:5px;">
                        <asp:Label ID="ConfirmMessageLabelTitle" runat="server" Text="Please, confirm the following data for your bet:"></asp:Label>
                        <br />
                        <asp:Label ID="BetInfoLabel" runat="server" Font-Size="Large"></asp:Label>
                        <br />
                        <asp:Label ID="StatusLabel" runat="server" Text="Waiting for confirmation..."></asp:Label>
                    </td> 
                </tr>
                
                <tr>    
                    <td colspan="2" style="border-top:1px solid #CCCCCC; padding-top:5px;text-align:right;">
                        <asp:Button ID="ConfirmCurrentBetButton" Text="OK" runat="server" OnClick="ConfirmCurrentBetButton_OnClick" />
                        <asp:Button ID="CancelCurrentBetButton" Text="Cancel" runat="server" OnClick="CancelCurrentBetButton_OnClick"/>
                        <asp:Button ID="FinishCurrentBetButton" Text="Finish" runat="server" OnClick="FinishCurrentBetButton_OnClick" Enabled="false"/>
                    </td>
                </tr>
            </table> 
        </div> 
    </div> 

    <asp:Table ID="TitleTable" runat="server" Width="100%">
        <asp:TableHeaderRow>
            <asp:TableHeaderCell HorizontalAlign="Center">
                <asp:Label ID="TournamentNameLabel" runat="server" Text=""></asp:Label>
            </asp:TableHeaderCell>
        </asp:TableHeaderRow>
    </asp:Table>
    
    <asp:Table ID="JourneysTable" runat="server" Width="100%">
        <asp:TableRow>
            <asp:TableCell ID="JourneyManagerControlCell" Width="50%" HorizontalAlign="Center" VerticalAlign="Top">
                <GenericControls:JourneyManagerControl ID="JourneyManagerControl" runat="server" />
            </asp:TableCell>
            
            <asp:TableCell ID="RadioButtonsCell" Width="10%" VerticalAlign="Top">
                <asp:RadioButtonList ID="JourneySelectionRadioButtonList" runat="server" CellSpacing="10">
                    <asp:ListItem Text="1"></asp:ListItem>
                    <asp:ListItem Text="2"></asp:ListItem>
                </asp:RadioButtonList>

            </asp:TableCell>
            
            <asp:TableCell ID="ResultSelectionCell" VerticalAlign="Top" Width="40%">
                <asp:Table ID="ResultSelectionTable" runat="server" Width="100%" >
                    <asp:TableHeaderRow >
                        <asp:TableHeaderCell Text="Choose a result">
                        </asp:TableHeaderCell>
                    </asp:TableHeaderRow>
                    <asp:TableRow>
                        <asp:TableCell HorizontalAlign="Center">
                            <asp:RadioButtonList ID="MatchResultRadioButtonList" runat="server">
                                <asp:ListItem Text="Home"/>
                                <asp:ListItem Text="Away"/>
                                <asp:ListItem Text="Draw"/>
                            </asp:RadioButtonList>
                        </asp:TableCell>
                        
                    </asp:TableRow>
                </asp:Table>
                <br /><br />
                <asp:Table ID="BetTable" runat="server" Width="100%">
                    <asp:TableRow>
                        <asp:TableHeaderCell HorizontalAlign="Left" Text="Bet Amount"></asp:TableHeaderCell>
                        <asp:TableCell HorizontalAlign="Center"><asp:Button ID="AcceptBetButton" runat="server" Text="Accept Bet" OnClick="AcceptBetButton_OnClick"/></asp:TableCell>
                    </asp:TableRow>
                    
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Table ID="Table1" runat="server">
                                <asp:TableRow>
                                    <asp:TableCell HorizontalAlign="Center" Text="u$s"></asp:TableCell>
                                    <asp:TableCell HorizontalAlign="Center"><asp:TextBox ID="AmountTextBox" runat="server"></asp:TextBox></asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </asp:TableCell>
                        
                        <asp:TableCell HorizontalAlign="Center"><asp:Button ID="ResetBetButton" runat="server" Text="Reset Bet" OnClick="ResetBetButton_OnClick"/></asp:TableCell>
                    </asp:TableRow>
                    
                    <asp:TableRow>
                        <asp:TableCell Width="50%"></asp:TableCell>
                        <asp:TableCell Width="50%" HorizontalAlign="Center"><asp:Button ID="CancelBetButton" runat="server" Text="Cancel Bet" OnClick="CancelBetButton_OnClick"/></asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
            
        </asp:TableRow>

        <asp:TableRow>
            <asp:TableCell ID="TeamsInfoCell" Width="50%">
                <asp:Table ID="TeamsInfoTable" runat="server" Width="100%">
                    <asp:TableRow>
                        <asp:TableHeaderCell Width="50%" Text="Home"></asp:TableHeaderCell>
                        <asp:TableHeaderCell Width="50%" Text="Away"></asp:TableHeaderCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell HorizontalAlign="Center" Width="50%"><asp:Button ID="HomeTeamInfoButton" runat="server" Text="Team Info" 
                        OnClick="TeamInfoButton_OnClick"/></asp:TableCell>
                        <asp:TableCell HorizontalAlign="Center" Width="50%"><asp:Button ID="AwayTeamInfoButton" runat="server" Text="Team Info" 
                        OnClick="TeamInfoButton_OnClick"/></asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
            
            <asp:TableCell ID="EmptyTableCell" Width="10%">
            </asp:TableCell>
            
            <asp:TableCell Width="20%">
            </asp:TableCell>
            <asp:TableCell Width="20%">
            </asp:TableCell>
            
        </asp:TableRow>
    </asp:Table>
    <br />
    <div id="ButtonBackDiv" class="ButtonBackDivCssClass">
        <asp:Button ID="MatchBetGoBackButton" runat="server" OnClick="MatchBetGoBackButton_OnClick" Text="< Go Back >" 
        CssClass="CreateTournamentButtonCssClass" BackColor="Transparent" BorderStyle="None"/>
    </div>
    <br />
</asp:Panel>